package data;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.Map;

public class AppData {
	
	
	private LinkedList<Participant> participants;
	
	public AppData() {
		participants = new LinkedList();
	}
	
	
	public Participant getParticipant(String name) {
		Iterator it = participants.iterator();
		while (it.hasNext()) {
			Participant type = (Participant) it.next();
			if (type.getName().equalsIgnoreCase(name)){
				return type;
			}
		}
		return null;
	}

}
